package com.sh.工厂模式.factorymethod;

import com.sh.工厂模式.ICourse;

import java.util.ArrayList;
import java.util.List;

public class FactoryMethodTest {
    public static void main(String[] args) {

        JavaCourseFactory javaCourseFactory = new JavaCourseFactory();
        ICourse javaCourse = javaCourseFactory.createCourse();
        javaCourse.study();


        PythonCourseFactory pythonCourseFactory = new PythonCourseFactory();
        ICourse pythonCourse = pythonCourseFactory.createCourse();
        pythonCourse.study();


        List<Integer> list = new ArrayList<>();

    }
}
